/*
 * Collision.h
 *
 *  Created on: 11/01/2011
 *      Author: Nenem
 */

#ifndef COLLISION_H_
#define COLLISION_H_

#include "Scenery.h"
#include "Tools.h"
#include "Body.h"
#include "Direction.h"
#include <map>
using namespace std;

class Collision {
	map<int, Body*> Collisioners;
public:
	bool addCollisioner(Body* rB, int owner);
	void eraseCollisioner(int owner);
	Collision();
	virtual ~Collision();
	Point2D resolveCollion(int collisioner, Direction *direction, Point2D oldP, Point2D newP, Scenery *scenery);
};

#endif /* COLLISION_H_ */
